package entity;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/**
 * User entity. @author MyEclipse Persistence Tools
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
public class User implements java.io.Serializable {

	// Fields

	private Integer id;
	private Role role;
	private String uname;
	private String pwd;
	private Integer status;
	private Userinfo userinfo;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(Role role, String uname, String pwd, Integer status) {
		this.role = role;
		this.uname = uname;
		this.pwd = pwd;
		this.status = status;
	}

	/** full constructor */
	public User(Role role, String uname, String pwd, Integer status,
			Userinfo userinfo) {
		this.role = role;
		this.uname = uname;
		this.pwd = pwd;
		this.status = status;
		this.userinfo = userinfo;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Role getRole() {
		return this.role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public String getUname() {
		return this.uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Userinfo getUserinfo() {
		return this.userinfo;
	}

	public void setUserinfo(Userinfo userinfo) {
		this.userinfo = userinfo;
	}
	
}